/*
*File name: generate.cu
*Author: Tran Van Hoang
*Date: 21-04-2015
*/
#include <stdio.h>
#include <string.h>
#include "cellNetwork.h"
//#include "cellNetworkRiver.h"
#include "dataRiver.cu"
char FILE_NAME[] = "networkRiver.cu";
char CA_PATTERN[] = "vonneumann"; // vonneumann or moore
//char CA_PATTERN[] = "moore"; // vonneumann or moore


int main(int argc, char **argv)
{
	
	/**********************Generating new_network*******************************/
	if (argc == 1)
	{
		GenerateNetwork(FILE_NAME, CA_PATTERN, Cells, NODE_NUMBER_RIVER);
		printf("-- Generating cell network with default name: %s - Default CA Pattern: %s\n", FILE_NAME, CA_PATTERN);   
	}else if (argc == 2)
	{
		GenerateNetwork(argv[1], CA_PATTERN, Cells, NODE_NUMBER_RIVER);
		printf("-- Generating cell network named: %s - Default CA Pattern: %s\n", argv[1], CA_PATTERN);

	}else if (argc == 3)
	{
		GenerateNetwork(argv[1], argv[2], Cells, NODE_NUMBER_RIVER);
		printf("-- Generating cell network named: %s - CA Pattern: %s\n", argv[1], argv[2]);
	}
	return 0;
}
